package com.example.common;

public class Sudoku {
    private int id;
    private String content;
    private int initialNumber;

    public Sudoku() {
    }

    public Sudoku(String content) {
        this.content = content;
        for (int i = 0; i < content.length(); i++) {
            if (content.charAt(i) != '.') {
                initialNumber++;
            }
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getInitialNumber() {
        return initialNumber;
    }

    public void setInitialNumber(int initialNumber) {
        this.initialNumber = initialNumber;
    }

    @Override
    public String toString() {
        return "Sudoku{" +
                "content='" + content + '\'' +
                ", initialNumber=" + initialNumber +
                '}';
    }
}
